/****************************************************************************
   Copyright 2013 Stacy Doss

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
****************************************************************************/

#include "DefComponent.h"

#include <iostream>
#include <stdio.h>


//// ************************************************************************
namespace def {
	Component::Component() {
		_weight = 0;
		_source = util::NONE;
		_placement = util::UNPLACED;
		_origin = NULL;
		_foreignOrigin = NULL;
	};


	Component::Component(std::string name) {
		_name = name;
		_weight = 0;
		_source = util::NONE;
		_placement = util::UNPLACED;
		_origin = NULL;
		_foreignOrigin = NULL;
	};


	Component::Component(std::string name, std::string model) {
		_name  = name;
		_model = model;
		_weight = 0;
		_source = util::NONE;
		_placement = util::UNPLACED;
		_origin = NULL;
		_foreignOrigin = NULL;
	};


	Component::~Component() {

	};


	void
	Component::setName(std::string name) {
		_name = name;
	};


	void
	Component::setModel(std::string model) {
		_model = model;
	};


	void
	Component::setEeqMaster(std::string eeqmaster) {
		_eeqmaster = eeqmaster;
	};


	void
	Component::setSource(util::SOURCE_TYPE source) {
		_source = source;
	};


	void
	Component::setForeignName(std::string name) {
		_foreignName = name;
	};


	void
	Component::setForeignOrigin(util::Point* origin) {
		_foreignOrigin = origin;
	};


	void
	Component::setForeignOrient(std::string orient) {
		_foreignOrient = orient;
	};


	void
	Component::setPlacement(util::PLACEMENT_TYPE placement) {
		_placement = placement;
	};


	void
	Component::setOrigin(util::Point* origin) {
		_origin = origin;
	};


	void
	Component::setOrient(std::string orient) {
		_orient = orient;
	};


	void
	Component::setWeight(int weight) {
		_weight = weight;
	};

	void
	Component::setRegionName(std::string) {

	};

};
